Part 3.1: Installing NVIDIA OptiX on Windows 10/11

1 minute read

Published:

Windows Installation and Integration (OptiX, CUDA)

  • note: developers must check the latest driver version for OptiX, CUDA version, and CUDA host compiler before running
  • 1.e) and 3. is not compulsory to run OptiX, 3) is just to run default SDK examples
  • nsight visual studio edition automatically installed with CUDA toolkit installation

<img src="https://user-images.githubusercontent.com/12484581/228892646-843bc7c6-6063-43cd-97c9-44451e7481d7.png", width="500", height = "350">

OptiX and CUDA (also OWL) setup steps

  • Add OptiX to environment variable >> System Variables >> New
OPTIX74_PATH 
C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.4.0
  • CMake BUILD (for built-in SDK examples)

General troubleshooting (OptiX any version built-in samples BUILDING)

  • CUDA_SDK_ROOT_DIR : C:/ProgramData/NVIDIA Corporation/CUDA Samples/v10.1
  • CUDA_TOOLKIT_ROOT_DIR : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
  • VULKAN_LIBRARY :
  • VULKAN_INCLUDE_DIR :
  • MSB8066 Error : in CMake the CUDA_HOST_COMPILER should be set to proper MSVS 2019 (or any other version) x64 version of cl.exe. For my case this is C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe (CMake takes slash instead of back slash).
  • NVML_LIBRARY in CMake Build CUDA Version >> lib >> x64 >> nvml.lib

Optix7course troubleshooting

  • CMake Error at common/3rdParty/glfw/CMakeLists.txt:347 (add_subdirectory): add_subdirectory given source "docs" which is not an existing directory. -> comment the three lines as doc is missing